
#ifndef TOGGLE_BUTTON_H
#define TOGGLE_BUTTON_H

// INCLUDES ********************************************************************

#include "Button.h"

// FORWARD DECLARATIONS ********************************************************

// *****************************************************************************

//! ToggleButton
//! 
//! Specialised button toggling it's images

// *****************************************************************************

namespace Meteor 
{
    class ToggleButton : public Button
    {        
        public:
            ToggleButton( const std::string& normalImage,
                          const std::string& altImage=0);
                    
            ToggleButton( const std::string& normalImage,
                          const std::string& altImage=0,
                          const uint32_t zIndex=0);
            
            virtual ~ToggleButton();
            
            void TouchEnded( const Vector2D& position, double duration);
        
        private:
            bool mActive;
    
    }; // end of class ToggleButton
    
} // end of namespace Meteor

#endif // TOGGLE_BUTTON_H
 
